<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:67:"E:\Project\help\public/../application/admin\view\widget\sidebar.php";i:1528793158;}*/ ?>
<ul class="page-sidebar-menu">
    <li class="sidebar-toggler-wrapper">
        <div class="sidebar-toggler hidden-phone">
        </div>
    </li>
    <li class="sidebar-search-wrapper">
        <form class="sidebar-search" action="#" method="POST">
            <div class="form-container">
                <!--<div class="input-box">
                    <a href="javascript:;" class="remove"></a>
                    <input type="text" placeholder="搜索..."/>
                    <input type="button" class="submit" value=""/>
                </div>-->
            </div>
        </form>
    </li>
    
    <?php if((!empty($menu))): foreach($menu as $k=>$v): ?>
    <li class="<?php if($k==1): ?> start <?php endif; if(isset($v['active'])): ?> active <?php endif; ?>">
        <a href="<?php if(empty($v['child'])): ?> <?php echo $v['action']; else: ?> javascript:void(0);<?php endif; ?>">
            <?php if(isset($v['icon_class'])): ?> <i class="fa <?php echo $v['icon_class']; ?>"></i> <?php endif; ?>
            <span class="title"><?php echo $v['name']; ?></span>
            <?php if(isset($v['active'])): ?> <span class="selected"></span> <?php endif; if((!empty($v['child']))): ?> <span class="arrow <?php if(isset($v['active'])): ?> open <?php endif; ?>"></span> <?php endif; ?>
        </a>
        <?php if(!empty($v['child'])): ?>
            <ul class="sub-menu" <?php if(isset($v['active'])): ?> style="display:block;" <?php endif; ?>>
                <?php foreach($v['child'] as $kk=>$vv): ?>
                    <li class="<?php if(isset($vv['active'])): ?> open <?php endif; ?>">
                        <a href="<?php if(empty($vv['child'])): ?> <?php echo $vv['action']; else: ?> javascript:void(0);<?php endif; ?>">
                            <?php if(isset($vv['icon_class'])): ?> <i class="fa <?php echo $vv['icon_class']; ?>"></i> <?php endif; ?>
                            <span class="title"><?php echo $vv['name']; ?></span>
                            <?php if(isset($vv['active'])): ?> <span class="selected"></span> <?php endif; if((!empty($vv['child']))): ?> <span class="arrow <?php if(isset($vv['active'])): ?> open <?php endif; ?>"></span> <?php endif; ?>
                        </a>
                        <?php if(!empty($vv['child'])): ?>
                            <ul class="sub-menu" <?php if(isset($vv['active'])): ?> style="display:block;" <?php endif; ?>>
                                <?php foreach($vv['child'] as $kkk=>$vvv): ?>
                                    <li class="<?php if(isset($vvv['active'])): ?> open <?php endif; ?>">
                                        <a href="<?php if(empty($vvv['child'])): ?> <?php echo $vvv['action']; else: ?> javascript:void(0);<?php endif; ?>">
                                            <?php if(isset($vvv['icon_class'])): ?> <i class="fa <?php echo $vvv['icon_class']; ?>"></i> <?php endif; ?>
                                            <span class="title"><?php echo $vvv['name']; ?></span>
                                            <?php if(isset($vvv['active'])): ?> <span class="selected"></span> <?php endif; if((!empty($vvv['child']))): ?> <span class="arrow <?php if(isset($vvv['active'])): ?> open <?php endif; ?>"></span> <?php endif; ?>
                                        </a>
                                        <?php if(!empty($vvv['child'])): ?>
                                            <ul class="sub-menu" <?php if(isset($vvv['active'])): ?> style="display:block;" <?php endif; ?>>
                                                <?php foreach($vvv['child'] as $kkkk=>$vvvv): ?>
                                            <li class="<?php if(isset($vvvv['active'])): ?> open <?php endif; ?>">
                                                <a href="<?php if(empty($vvvv['child'])): ?> <?php echo $vvvv['action']; else: ?> javascript:void(0);<?php endif; ?>">
                                                    <?php if(isset($vvvv['icon_class'])): ?> <i class="fa <?php echo $vvvv['icon_class']; ?>"></i> <?php endif; ?>
                                                    <span class="title"><?php echo $vvvv['name']; ?></span>
                                                    <?php if(isset($vvvv['active'])): ?> <span class="selected"></span> <?php endif; if((!empty($vvvv['child']))): ?> <span class="arrow <?php if(isset($vvvv['active'])): ?> open <?php endif; ?>"></span> <?php endif; ?>
                                                </a>
                                            </li>
                                                <?php endforeach; ?>
                                            </ul>
                                        <?php endif; ?>
                                    </li>
                                <?php endforeach; ?>
                            </ul>
                        <?php endif; ?>
                    </li>
                <?php endforeach; ?>
            </ul>
         <?php endif; ?>
     </li>
    <?php endforeach; endif; ?>
</ul>